import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:pornhub_app/assets/styles.dart';
import 'package:pornhub_app/components/app_bar/app_bar_view.dart';
import 'package:pornhub_app/components/save_screen/save_screen.dart';
import 'package:pornhub_app/components/text_view.dart';
import 'package:pornhub_app/generate/app_image_path.dart';
import 'package:pornhub_app/routes/routes.dart';
import 'package:pornhub_app/utils/app_utils.dart';
import 'package:pornhub_app/utils/color.dart';
import 'package:pornhub_app/utils/extension.dart';
import 'package:pornhub_app/views/mine/share/agent/agent_page.dart';
import 'package:pornhub_app/views/mine/share/app_recommend/app_recommend_page.dart';
import 'package:pornhub_app/views/mine/share/welfare/welfare_page.dart';

import '../../../components/tab_bar_indicator/easy_fixed_indicator.dart';
import 'share_page_controller.dart';

class SharePage extends GetView<SharePageController> {
  const SharePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: COLOR.color_161616,
      appBar: _buildAppBar(),
      // body: _buildBodyView(),
      body: const AgentPage(),
    );
  }

  _buildAppBar() {
    return AppBarView(
      titleText: "分享推广",
      actions: [
        TextView(
          text: "我的推广",
          style: kTextStyle(COLOR.white, fontsize: 14.w),
        ).marginRight(14.w).onOpaqueTap(() {
          Get.toNamed(Routes.minepromotion);
        })
      ],
    );
  }
}
